<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/inc/includemobile.jsp"%>
<c:choose>
	<c:when test="${param.method=='edit'}">
		<c:set var="title" value="修改银行信息"></c:set>
	</c:when>
	<c:when test="${param.method=='create'}">
		<c:set var="title" value="新建银行"></c:set>
	</c:when>
	<c:when test="${param.method=='show'}">
		<c:set var="title" value="银行详细信息"></c:set>
	</c:when>
</c:choose>

<html>
	<head>
		<title>${title}</title>
	</head>

	<body class="mobile">
		<br />
		<form id="form1" name="form1" action="/cnaps/bankManage!save.do" method="post">
		  <center>
			<input type="hidden" name="method" value="${param.method}" />
			<table class="mobile" style="width: 90%;" align="center">
				<tr class="outHeader" >
					<td colspan="4">
						${title}
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						银行代码：
					</td>
					<td width="30%" align="left" class="outDetail2">
						
						<c:if test="${param.method=='create'}">
							添加后系统自动生成
						</c:if>
						<c:if test="${param.method=='edit'}">
							<input type="text" name="bank_id" value="${map.BANK_ID }"/>
						</c:if>
					<td width="20%" align="center" class="outDetail">
						银行名称：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="bank_name" value="${map.BANK_NAME }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						状态：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<select name="state">
							<option value="1" ${map.STATE==1?'selected':'' }>有效</option>
							<option value="0" ${map.STATE==0?'selected':'' }>冻结</option>
						</select>
					<td width="20%" align="center" class="outDetail">
						城市名称：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="city_name" value="${map.CITY_NAME }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						申请人简称：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="jion_sname" value="${map.JION_SNAME }"/>
					<td width="20%" align="center" class="outDetail">
						申请人全称：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="jion_aname" value="${map.JION_ANAME }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						住址：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="address" value="${map.ADDRESS }"/>
					<td width="20%" align="center" class="outDetail">
						邮编：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="portcode" value="${map.PORTCODE }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						电话：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="phone" value="${map.PHONE }"/>
					<td width="20%" align="center" class="outDetail">
						E-mail：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="email" value="${map.EMAIL }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						生效日期：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="begin_date" onclick="setday(this);" value="${map.BEGIN_DATE }"/>
					<td width="20%" align="center" class="outDetail">
						失效日期：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="end_date" onclick="setday(this);" value="${map.END_DATE }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						准备金额：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" colspan="3">
						<input type="text" name="bank_cash"  value="${map.BANK_CASH }"/>
				</tr>
			</table>
			</center>
			<br />
			<p align="center">
				<c:if test="${param.method!='show'}">
					<input type="button" class="btn" value="保 存" onclick="save(this);" />
				</c:if>
				<input type="button" class="btn" value="关 闭"
					onclick="window.close();" />
			</p>
		</form>

	</body>
	<script type="text/javascript">
	
	
       
       function save(src)
       {
       		//防止重复提交
			src.disabled=true;
			form1.submit();		
       }
     </script>
</html>
